package www.sofn.com.sys.roles;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import www.sofn.com.sys.roles.domain.pojo.SysRolesPO;
import www.sofn.com.sys.roles.domain.vo.ResourceSysRolesVO;

import java.io.Serializable;
import java.util.List;

@Mapper
public interface SysRolesMapper  extends BaseMapper<SysRolesPO> {
    List<ResourceSysRolesVO> findResourceByRolesId(@Param("rolesId") Serializable rolesId);

    void insertResource(@Param("resources") List<String> resources,@Param("rolesId") Serializable rolesId);

    void deleteResourceByRolesId(@Param("rolesId") Serializable rolesId);
}
